﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using E_Commerce.Domain.Entities;//引用实体层

namespace E_Commerce.Domain.Interfaces
{
   public interface ISpecificationRepository: IRepository<Specification>
    {
        /// <summary>
        /// 显示商品规格
        /// </summary>
        /// <returns></returns>
        List<Specification> GetSpecifications(int id);
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="s"></param>
        /// <returns></returns>
        Task<int> AddSpecAsyn(Specification s);
        /// <summary>
        /// 删除规格
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DeleSpecAsync(int id);
        /// <summary>
        /// 修改商品规格
        /// </summary>
        /// <param name="s"></param>
        /// <returns></returns>
        Task<int> UptSpecAsync(Specification s);
        /// <summary>
        /// 反填商品规格
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>

        Specification FillSpecAsync(int id);


    }
}
